package com.tiantian.judge.domain.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 判题人和答题用户关联
 * @author tiantian
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Judger2Answerer implements Serializable {

    @Serial
    private static final long serialVersionUID = 836481131186943628L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 判题人ID(用户ID)
     */
    private Long judgerId;

    /**
     * 答题用户ID
     */
    private Long replyUserId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 创建人ID
     */
    private Long createBy;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 更新人ID
     */
    private Long updateBy;

    /**
     * 设置判题人用户ID
     */
    public Judger2Answerer(Long judgerId) {
        this.judgerId = judgerId;
    }
}
